/**
 *
 */
package com.whosly.rapid.lang.thread;

import java.lang.Thread.UncaughtExceptionHandler;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 异步线程运行时异常忽略
 *
 * @author yueny09 <deep_blue_yang@163.com>
 *
 * @DATE 2017年4月14日 下午3:20:31
 * @since 1.0.0
 */
public class IgnoreUncaughtExceptionHandler implements UncaughtExceptionHandler {
	private static Logger logger = LoggerFactory.getLogger(IgnoreUncaughtExceptionHandler.class);

	/*
	 * (non-Javadoc)
	 *
	 * @see
	 * java.lang.Thread.UncaughtExceptionHandler#uncaughtException(java.lang
	 * .Thread, java.lang.Throwable)
	 */
	@Override
	public void uncaughtException(final Thread t, final Throwable e) {
		logger.warn("Caught 异常 Ignore ：{}", e);
	}

}
